package com.albaba.designpattern.strategy.text_001;

/**
 * @Description: TODO
 * @Author zx
 * @Date 2025/2/24 17:54
 * @Version 1.0
 */
public class Client {

    public static void main(String[] args) {
        ConcreteStrategyA strategyA = new ConcreteStrategyA();
        Context context = new Context(strategyA);
        context.contextInterface();

        ConcreteStrategyB strategyB = new ConcreteStrategyB();
        context = new Context(strategyB);
        context.contextInterface();
    }
}
